package com.coffee.admin.service.platform.dao;

import com.coffee.admin.api.platform.query.PlatformBaseDeployQuery;
import com.coffee.admin.service.platform.bean.PlatformBaseDeploy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PlatformBaseDeployDao {
	public PlatformBaseDeploy findById(Integer id);
	
	public PlatformBaseDeploy findByIdForUpdate(Integer id);
	
	public List<PlatformBaseDeploy> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") PlatformBaseDeployQuery param);

	public List<PlatformBaseDeploy> page(@Param("param") PlatformBaseDeployQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<PlatformBaseDeploy> list(@Param("param") PlatformBaseDeployQuery param);

	public PlatformBaseDeploy findFirst(@Param("param") PlatformBaseDeployQuery param);

	public Integer insert(PlatformBaseDeploy param);

	Integer insertBatch(List<PlatformBaseDeploy> list);

	public void updateById(@Param("param") PlatformBaseDeploy param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}